package cn.cool.types.design.framework.tree;

/**
 * 策略映射器：获取下一个节点
 */
public interface StrategyMapper<T, D, R> {

    /**
     * 获取下一个节点，即下一个 StrategyMapper
     * @param requestParameter 入参
     * @param dynamicContext 动态上下文
     */
    StrategyHandler<T, D, R> get(T requestParameter, D dynamicContext) throws Exception;
}
